package mianxiangduixiang.Week8.Exam4;

import mianxiangduixiang.Week8.Exam1.Point;

/**
 * @Author JetZhang
 * @Date 2021/11/2
 */
public class Rectangle implements Shape {

    private Point point;
    private int l, w;

    public Rectangle() {
    }

    public Rectangle(Point point, int l, int w) {
        this.l = l;
        this.w = w;
    }

    @Override
    public int getArea() {
        return l * w;
    }

    @Override
    public int getC() {
        return (l + w) * 2;
    }
}
